package com.demo.demo;

/**
 * Copyright
 *
 * @Author WuHuang
 * @Date 2022/12/9
 */
public class ThreadImplRunnable implements Runnable {
    /**
     * 线程名称
     */
    private String threadName;

    /**
     * 构造函数
     *
     * @param threadName 线程名称
     */
    public ThreadImplRunnable(String threadName) {
        this.threadName = threadName;
    }
    /**
     * 重写run方法
     */
    @Override
    public void run() {
        System.out.println(threadName);
    }

    public static void main(String[] args) {
//        ThreadImplRunnable threadImplRunnable = new ThreadImplRunnable("Thread1");
//        new Thread(threadImplRunnable).start();
//        threadImplRunnable = new ThreadImplRunnable("Thread2");
//        new Thread(threadImplRunnable).start();
////        ObjectSizeCalculator.getObjectSize();
//        System.out.println("end");

    }

}
